package com.wangyadong.hobby.schedule.jobtask.classload.chapter3;

/**
 * <p>
 *
 * @author <714037465@qq.com>
 * @since 2018/10/3010:48
 **/
public class MyClassLoadTest2 {
    public static void main(String[] args) throws Exception {
        MyclassLoad classLoader1 = new MyclassLoad("MyClassLoader-1");
        MyclassLoad classLoader2 = new MyclassLoad("MyClassLoader-2");
        classLoader2.setDir("");
        Class<?> aClass = classLoader1.loadClass("com.wangyadong.hobby.schedule.jobtask.classload.ww");
        System.out.println(aClass.hashCode());
        Class<?> aClass1 = classLoader2.loadClass("com.wangyadong.hobby.schedule.jobtask.classload.ww");
        System.out.println(aClass1.hashCode());

    }
}
